home *** CD-ROM | disk | FTP | other *** search
- .R:E
- .W:96
- .H:...DML KBD UNIT Version 1.00...
- .H:...$$Day Mon D, YEAR$$ $$Z:MI A.M.$$ Page $$$...
- .H:...TABLE OF CONTENTS...
- .H:
- .F:
- .F:... Copyright (c) 1989, by DML Software Inc. ...
- .X:8
-
-
- DML SOFTWARE INC. TURBO PASCAL LIBRARY
-
-
- KEYBOARD SUBROUTINES
-
- The following procedures provide some low-level support for the key
- board. The first routine KbdInputValue waits for a character to be typed
- on the keyboard, and returns the "extended ASCII" code for that key. The
- other routines give information on the status of various shift-locks
- (i.e. Scroll lock, etc). Some of these locks can be set under program
- control. Almost all of these routines deal with the keyboard either at
- the BIOS level or directly at the hardware level.
-
-
-
- Procedure Page
- --------- ----
-
- KEYBOARD ROUTINES - CHANGES HIGHLIGHTS (VERSION 1.00) 1
-
- 1) GENERAL PURPOSE KEYBOARD 2
-
- KbdGetStatus - Gets the Keyboard status flags. 2
- KbdSetInsMode - Sets the Insert Mode toggle. 3
- KbdSetCapsLock - Sets the Caps Lock toggle. 4
- KbdSetNumLock - Sets the Number Lock toggle. 5
- KbdSetScrollLock - Sets the Scroll Lock toggle. 6
- KbdInsModeStatus - Returns the state of the Insert Mode toggle. 7
- KbdCapsLockStatus - Returns the state of the keyboard Caps Lock flag. 8
- KbdNumLockStatus - Returns the state of the Number lock flag. 9
- KbdScrollLockStatus - Returns the state of the Scroll lock flag. 10
-
- 2) KEYBOARD BUFFER 11
-
- KbdClear - Clears the keyboard buffer. 11
- KbdNumValuesWaiting - Returns the number of keys waiting in the keyboard. 12
- KbdInputValue - Waits for and returns "scan code" of a key pressed. 13
- KbdKeyWaiting - Returns TRUE if a key is in the keyboard buffer. 14
-
-
-
-